package rest.jbpm.wrappers.lists;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlRootElement
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlType(name = "strings", propOrder = {
    "values"})
public class StringList {

	private List<String> elements = new ArrayList<String>();
	
	protected StringList() {
		
	}
	
	public StringList(Iterable<String> elements) {
		
		for(String element : elements)
			this.elements.add(element);
	}
	
	@XmlElement(required=true, name="value")
	public List<String> getValues() {
		return elements;
	}
}